/*
package com.jymj.controller;

import com.jymj.entity.CjEntity;
import com.jymj.entity.CyfzHzkfEntity;
import com.jymj.entity.CyfzSyEntity;
import com.jymj.entity.GhEntity;
import com.jymj.entity.fhtnty.GhFhEntity;
import com.jymj.entity.gantt.MoveCost;
import com.jymj.service.GhService;
import com.jymj.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import static java.math.BigDecimal.ROUND_HALF_UP;

@Controller
@RequestMapping("/gh")
public class GhController extends AbstractController {

    @Autowired
    private GhService ghService;

    */
/**
     * 产业发展收益分析 直接出租 cyfzSyEntities 合作开发 cyfzHzkfEntities
     *
     * @param pjid
     * @return
     *//*

    @RequestMapping("/cyfz/{pjid}")
    @ResponseBody
    public R cyfzSy(@PathVariable("pjid") Integer pjid) {
        List<CyfzSyEntity> cyfzSyEntities = ghService.querySyfx(pjid);
        List<CyfzHzkfEntity> cyfzHzkfEntities = ghService.querySyfxHzkf(pjid);
        Map map = new HashMap();
        map.put("cyfzZjcz", cyfzSyEntities);
        map.put("cyfzHzkf", cyfzHzkfEntities);
        return R.ok().put("data", map);
    }

    */
/**
     * 土地管理 --规划情况
     *
     *  pjid
     * @return
     *//*

    @RequestMapping("/ghList")
    @ResponseBody
    public R queryList(String code) {
        List<GhFhEntity> ghEntities = ghService.queryByCode(code);
        return R.ok().put("data", ghEntities);
    }
    */
/**
     * 土地管理 点查
     *
     *  pjid
     * @return
     *//*

    @RequestMapping("/queryGh")
    @ResponseBody
    public R getGh(String point,String code,String czGhFlmc) {
        Map map = new HashMap();
        map.put("point",point);
        map.put("code",code);
        map.put("czGhFlmc",czGhFlmc);
        List<GhEntity> ghEntities = ghService.queryGh(map);
        return R.ok().put("data", ghEntities);
    }

    */
/**
     * 产业发展 --总览
     *
     * @param pjid
     * @return
     *//*

    @RequestMapping("ghcyfz/{pjid}")
    @ResponseBody
    public R queryCyfz(@PathVariable("pjid") Integer pjid) {
        List<GhEntity> ghEntities = ghService.queryBydkyt(pjid);
        return R.ok().put("data", ghEntities);
    }

    */
/*
    * 改造项目 -- 基本情况
    * *//*

    @RequestMapping("/jbList/{code}")
    @ResponseBody
    public R jbList(@PathVariable("code") String code) {
        Map map = new HashMap();
        //List<GhFhEntity> ghFhEntities = ghService.queryByGznx(pjid);
        List<CjEntity> cjEntity = ghService.selectCj(code);
        //map.put("ghFhEntities", ghFhEntities);
        map.put("cjEntity", cjEntity);
        return R.ok().put("data", map);
    }

    */
/*
    * 改造项目 -- 地块详情
    * *//*

    @RequestMapping("/dkDetails")
    @ResponseBody
    public R dkDetails(@RequestParam("dkbh") String dkbh, @RequestParam("point") String point, Integer pjid) {
        List<GhEntity> ghEntity = ghService.queryByDkbh(dkbh, point, pjid);
        return R.ok().put("data", ghEntity);
    }

    */
/*
    * 改造项目 -- 修改详情
    * *//*

    @RequestMapping("/update")
    @ResponseBody
    public R updateDk(@RequestBody GhEntity ghEntity) {
        //ghEntity.setZj(ghEntity.getJzmj().multiply(ghEntity.getDj()).setScale(2, ROUND_HALF_UP));
        ghService.updateGh(ghEntity);
        return R.ok();
    }

    */
/*
    * 改造项目 -- 产业发展列表
    * *//*

    @RequestMapping("/fzList/{pjid}")
    @ResponseBody
    public R fzList(@PathVariable("pjid") Integer pjid) {
        List<GhFhEntity> ghFhEntities = ghService.getGznxByType(pjid);
        return R.ok().put("data", ghFhEntities);
    }
    
  */
/*  @RequestMapping("/getTotalInvestAndJBList/{pjid}")
    @ResponseBody
    public R getTotalInvestAndJBList(@PathVariable("pjid") Integer pjid) {
        Map map = new HashMap();
        List<GhFhEntity> ghFhEntutyList = ghDao.getZzAndYcGznx(pjid);
        MoveCost mc = moveCostDao.getTotalInvest(pjid, 1);
        map.put("ghFhEntities", ghFhEntutyList);
        map.put("totalInvest", mc);
        return R.ok().put("data", map);
    }*//*


}
*/
